function DvMenuCls(){  
var MenuHides = new Array();  
this.Show = function(obj,depth){  
var childNode = this.GetChildNode(obj);  
if (!childNode){return ;}  
if (typeof(MenuHides[depth])=="object"){  
this.closediv(MenuHides[depth]);  
MenuHides[depth] = '';  
};  
if (depth>0){  
if (childNode.parentNode.offsetWidth>0){  
childNode.style.left= childNode.parentNode.offsetWidth+'px';  
  
}else{  
childNode.style.left='100px';  
};  
  
childNode.style.top = '-2px';  
};  
//childNode.style.display ='block';   //跟下一句相反 如果用下一行的代码则鼠标放上去显示下拉菜单  
childNode.style.display ='none';  
MenuHides[depth]=childNode;  
  
};  
this.closediv = function(obj){  
if (typeof(obj)=="object"){  
if (obj.style.display!='none'){  
obj.style.display='none';  
}  
}  
}  
this.Hide = function(depth){  
var i=0;  
if (depth>0){  
i = depth  
};  
while(MenuHides[i]!=null && MenuHides[i]!=''){  
this.closediv(MenuHides[i]);  
MenuHides[i]='';  
i++;  
};  
  
};  
this.Clear = function(){  
for(var i=0;i<MenuHides.length;i++){  
if (MenuHides[i]!=null && MenuHides[i]!=''){  
MenuHides[i].style.display='none';  
MenuHides[i]='';  
}  
}  
}  
this.GetChildNode = function(submenu){  
for(var i=0;i<submenu.childNodes.length;i++)  
{  
if(submenu.childNodes[i].nodeName.toLowerCase()=="div")  
{  
var obj=submenu.childNodes[i];  
break;  
}  
}  
return obj;  
}  
  
  
}


var status = 1;
var Menus = new DvMenuCls;
document.onclick = Menus.Clear;
function switchSysBar() {
	if (1 == window.status) {
		window.status = 0;
		switchPoint.innerHTML = '<img src="images/index/left.gif">';
		document.all("frmTitle").style.display = "none"
	} else {
		window.status = 1;
		switchPoint.innerHTML = '<img src="images/index/right.gif">';
		document.all("frmTitle").style.display = ""
	}
}